<template>
    <div>
        
        <van-nav-bar
            :title="titles"
        />
        <div id="box">
            账号:<input type="text" v-model="usevalue"><br>
            密码:<input type="text" v-model="pwdValue"><br>
            <button @click="getU" v-if="usevalue == 123456 && pwdValue == 123456">登录</button>
        </div>
        <canvas id="myCanvas"></canvas>
    </div>
</template>

<script setup lang="ts">
import { ref } from "vue"
import BASEURL from '../http/IndexUrl'
    const {INDEXURL} = BASEURL
    const titles='登录'
    const usevalue=ref()
    const pwdValue=ref()
    const getU=()=>{
        window.location.replace(INDEXURL)
    }
</script>

<style scoped>
canvas {
      display: block;
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: -1;
    }
</style>